﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using FRL.DebtChased.Repository;
using FRL.DebtChased.Website;

namespace WebApplication.Finance
{

	/// <summary>
	/// Declaration of AgentDetails class
	/// </summary>
	public partial class AgentDetails : System.Web.UI.Page
	{

		/////////////////////////////////////////////////////////////
		// Attributes

		public string InitParams { get; set; }

		/////////////////////////////////////////////////////////////
		// Event handlers

		protected void Page_Load(object sender, EventArgs e)
		{

			// If this is a postback...
			if (this.IsPostBack)
			{

			}
			else
			{

				// Pull off the handover
				MySession mySession = MySession.BindMySession();
				int? iId = mySession.PullHandover(this);

				// Initialize the parameters
				InitParams = string.Format("agentId={0}", iId ?? 0);

			}

		}

	}

}